home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE22 / CLINIC / Menus2 / MenuU3.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1997-04-05  |  716 b   |  40 lines

  1. unit MenuU3;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, Menus, StdCtrls;
  8.  
  9. type
  10.   TAnotherForm = class(TForm)
  11.     Button1: TButton;
  12.     procedure Something1Click(Sender: TObject);
  13.     procedure Button1Click(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   AnotherForm: TAnotherForm;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TAnotherForm.Something1Click(Sender: TObject);
  28. begin
  29.   Color := RGB(Random(256), Random(256), Random(256))
  30. end;
  31.  
  32. procedure TAnotherForm.Button1Click(Sender: TObject);
  33. begin
  34.   ShowMessage('Do it')
  35. end;
  36.  
  37. initialization
  38.   Randomize
  39. end.
  40.